/**
 * 
 */
package cn.com.xf.service;

import java.util.List;
import java.util.Map;

import cn.com.xf.domain.TblCheckSchedule;
import cn.com.xf.domain.TblCheckShift;
import cn.com.xf.domain.TblOaAuthRole;
import cn.com.xf.domain.TsUser;
import cn.com.xf.web.form.LeaveForm;

/**
 * @author Administrator
 * 
 */
public interface CheckShiftService {
	public List<TblCheckShift> selectShift();

	public Map<String, String> insertShift(LeaveForm form) throws Exception;

	public Map<String, String> updateShift(LeaveForm form, String realId) throws Exception;

	public int deleteShift(String id);

	public List<TblCheckShift> selectShift(int begin, int pageSize, String siteid, String deptid);

	public int selectShiftCount(String siteid, String deptid);

	public TblCheckShift selectShiftById(String id);

	public List<TblCheckSchedule> selectSchedule();

	public int insertSchedule(LeaveForm form) throws Exception;

	public int updateSchedule(LeaveForm form, String realId) throws Exception;

	public int deleteSchedule(String id);

	public List<TblCheckSchedule> selectSchedule(int begin, int pageSize, String siteid, String userid, String deptid);

	public int selectScheduleCount(String siteid, String userid, String deptid);

	public TblCheckSchedule selectScheduleById(String id);

	public List<TblCheckShift> selectShiftBySiteId(String siteId);

	public List<TsUser> selectUser(int begin, int pageSize, String siteid, String deptid, String userid, String username);

	public int selectUserCount(String siteid, String deptid, String userid, String username);

	public List<TblOaAuthRole> selectTblOaAuthRole(int begin, int pageSize, String siteid, String rolename);

	public int selectTblOaAuthRoleCount(String siteid, String rolename) throws Exception;

	public Map<String, String> selectUserSchedule(String userid, String scheduleid) throws Exception;

}
